import requests
import config


class LoginApi:

    # 登录
    def login(self,session,username, password):
       resp = session.post(url=f"{config.BASE_URL}/member/public/login",data={"keywords":username,"password":password})
       return resp


if __name__ == '__main__':
    api = LoginApi()
    print(api.login("13613512001","a123123"))